package com.angus.common.core.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.angus.common.core.validator.DeviceValidator;

/**
 * @author handsomejob
 */
@Target({ElementType.TYPE_USE, ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DeviceValidator.class)
public @interface Device {
    String message() default "设备信息格式不正确";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}